@import "common/base";

html, body, #app, .container {
  height: 100%;
}

.container {
  .tab {
    height: calc(100% - 3rem);
  }
}

#app {
  background-color: #F0F2F5;
}

.header {
  padding: .2rem;
  background-color: #fff;
  height: 2.9rem;
  .h-blue {
    font-size: .28rem;
    color: rgba(33, 43, 71, 1);
  }
  .h-gary {
    font-size: .26rem;
    color: rgba(108, 110, 112, 1);
  }
  .msg {
    position: relative;
    right: 0;
    top: 0;
  }
  .more-msg {
    position: absolute;
    right: 0;
    top: 0;
    font-size: .24rem;
    color: rgba(47, 76, 109, 1);
    padding-right: .24rem;
  }
  .more-msg::before {
    display: inline-block;
    content: '';
    width: .22rem;
    height: .22rem;
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -.1rem;
    background: url("../../img/arrowr.png") no-repeat center;
    background-size: 100%;
  }
  > p {
    position: relative;
    padding-left: .36rem;
  }
  > p::before {
    display: inline-block;
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: .28rem;
    height: .28rem;
    margin-top: -.14rem;
    background: url('../../img/position.png') no-repeat center;
    background-size: auto 100%;
  }
  .maint-num::before {
    background-image: url("../../img/maintainnum.png");
  }
  p.rep-num::before {
    background-image: url("../../img/repnum.png");
  }
  .last-maint::before {
    background-image: url("../../img/yellowpro.png");
  }
  .next-maint::before {
    background-image: url("../../img/greenpro.png");
  }
  .year-check::before {
    background-image: url("../../img/alock.png");
  }
}

.tab {
  margin-top: .1rem;
  padding-bottom: 1rem;
  background-color: #fff;
  .tab-bar {
    display: flex;
    justify-content: space-around;
    li {
      width: 1.2rem;
      border-bottom: 2px solid transparent;
      height: .7rem;
      line-height: .7rem;
      text-align: center;
    }
    li.select {
      color: #4A90E2;
      border-bottom: 2px solid #4A90E2;

    }
  }
  .both {
    height: .1rem;
    background-color: #F0F2F5;
  }
  .tab-con {
    padding-top: .4rem;
    height: calc(100% - .7rem);
    overflow: auto;
    ul {
      border-left: 1px solid #BFD1E6;
      margin-left: .38rem;
      padding-left: .2rem;
      //max-height: 100%;
      //overflow: auto;
      h6 {
        font-size: .28rem;
        color: rgba(74, 144, 226, 1);
        line-height: 1em;
        position: relative;
        padding-left: .2rem;
        line-height: .4rem;
      }
      h6::before {
        display: inline-block;
        content: '';
        width: .4rem;
        height: .4rem;
        position: absolute;
        left: -.4rem;
        top: 0;
        background: url("../../img/protect.png") no-repeat center;
        background-size: 100%;
      }
      .safe-msg {
        width: 6.5rem;
        height: 1.5rem;
        line-height: .32rem;
        background: rgba(240, 244, 249, 1);
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: .2rem;
        padding-right: 0;
        font-size: .26rem;
        color: rgba(50, 50, 50, 1);
        margin-bottom: .5rem;
        margin-top: .2rem
      }
    }

    li.repair-tab h6::before {
      background-image: url("../../img/repair.png");
    }

    li.examine-tab > .safe-msg {
      position: relative;
    }
    li.examine-tab > .safe-msg::before {
      display: inline-block;
      content: '';
      width: .4rem;
      height: .4rem;
      position: absolute;
      left: -.4rem;
    }
    .repair-tab h6::before {
      background-image: url("../../img/repair.png");
    }

    .examine-tab h6::before {
      top: -0.2rem;
      background-image: url("../../img/examine.png");
    }
  }
}

.footer {
  background-color: #4A90E2;
  color: #fff;
  line-height: .88rem;
  height: .88rem;
  font-size: .3rem;
  text-align: center;
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  a {
    color: #fff;
  }
}

// 详情页面
.info-detail {
  background-color: #fff;
  margin-top: .2rem;
  padding: .4rem .2rem;
  font-size: .26rem;
  > p {
    color: rgba(50, 50, 50, 1);
    > span {
      color: #6C6E70;
    }
  }
  .quality-ok {
    width: 1.68rem;
    height: 1.1rem;
    img {
      width: 100%;
    }
  }
}